import { RouterEnum } from '@/enum/routerEnum';
import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('@/layouts/home/index.vue'),
    meta: { auth: false, menu: { title: '绳网' } },
    children: [
      {
        name: RouterEnum.HOME,
        path: '/home',
        component: () => import('@/views/home/article/list.vue'),
        meta: { auth: false, menu: { title: '推送' } },
        children: [],
      },
      {
        name: RouterEnum.SCHEDULE,
        path: '/schedule',
        component: () => import('@/views/home/schedule/index.vue'),
        meta: { auth: false, menu: { title: '日程' } },
        children: [],
      },
      {
        name: RouterEnum.PORTRAIT,
        path: '/portrait',
        component: () => import('@/views/home/portrait/index.vue'),
        meta: { auth: false, menu: { title: '简历' } },
        children: [],
      },
    ],
  },
  {
    name: RouterEnum.HOME_ARTICLE_DETAIL,
    path: '/home-article-detail',
    component: () => import('@/views/home/article/detail.vue'),
    meta: { auth: false, menu: { title: '首页文章详情' } },
    children: [],
  },
];

export default routes;
